availablePlayersFor

  • function
 

Filters the players list to exclude players that are already assigned to a Team.

viewmodel.availablePlayersFor(team, number)

Filters the players list to exclude players that are already assigned to a Team.

Parameters

  1. team {String}

    A reference to a Team model instance.

  2. number {Number}

    The player number on the team.

Returns

{List | Array}

An array of Team models.